@using ExampleWebApplication.Properties
<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    @(Html.Telerik().StyleSheetRegistrar().DefaultGroup(group => group.Add("telerik.common.css").Add("telerik.default.css").Combined(true).Compress(true)))</head>
<body>
    <div class="page">
        <header>
            <div id="title">
                <h1>TelerikMvcGridCustomBindingHelper Example Application</h1>
            </div>
            @(Html.Telerik().Menu().Name("menu")
                    .Items(menu =>
                    {
                        menu.Add().Text("Home").Action("Index", "Home");
                        menu.Add().Text("NHibernate").Action("Index", "NHibernate").Items(mi =>
                        {
                            mi.Add().Text(NHibernateStrings.Example1).Action("CustomAjaxBinding", "NHibernate");
                            mi.Add().Text(NHibernateStrings.Example2).Action("CustomServerBinding", "NHibernate");
                            mi.Add().Text(NHibernateStrings.Example3).Action("TwoQueriesToCountAndList", "NHibernate");
                            mi.Add().Text(NHibernateStrings.Example4).Action("NHibernateQueryOver", "NHibernate");
                            mi.Add().Text(NHibernateStrings.Example5).Action("MappingTechniques", "NHibernate");
                            mi.Add().Text(NHibernateStrings.Example6).Action("AggregatesServerSide", "NHibernate");
                            mi.Add().Text("#07: Aggregates").Items(mii =>
                            {
                                mii.Add().Text(NHibernateStrings.Example7d1).Action("AggregatesClientSide", "NHibernate");
                                mii.Add().Text(NHibernateStrings.Example7d2).Action("AggregatesClientSideNHibernate", "NHibernate");
                            });
                            mi.Add().Text("#08: Direct usage of TEntity").Items(mii =>
                            {
                                mii.Add().Text(NHibernateStrings.Example8d1).Action("DirectUsageOfTEntity", "NHibernate");
                                mii.Add().Text(NHibernateStrings.Example8d2).Action("DirectUsageOfTEntityNHibernate", "NHibernate");
                            });
                            mi.Add().Text("#09: Custom aggregates").Items(mii =>
                            {
                                mii.Add().Text(NHibernateStrings.Example9d1).Action("CustomAggregatesFunctionsClientSide", "NHibernate");
                                mii.Add().Text(NHibernateStrings.Example9d2).Action("CustomAggregatesFunctionsInlineClientSide", "NHibernate");
                                mii.Add().Text(NHibernateStrings.Example9d3).Action("CustomAggregatesFunctionsIgnoreGroupAggregatesClientSide", "NHibernate");
                                mii.Add().Text(NHibernateStrings.Example9d4).Action("CustomAggregatesFunctionsNHibernateClientSide", "NHibernate");
                                mii.Add().Text(NHibernateStrings.Example9d5).Action("CustomAggregatesFunctionsNHibernateInlineClientSide", "NHibernate");
                                mii.Add().Text(NHibernateStrings.Example9d6).Action("CustomAggregatesFunctionsNHibernateIgnoreGroupAggregatesClientSide", "NHibernate");
                                mii.Add().Text(NHibernateStrings.Example9d7).Action("CustomAggregatesFunctionsInlineDirectUsageOfTEntityClientSide", "NHibernate");
                            });
                            mi.Add().Text("#10: Projections").Items(mii =>
                            {
                                mii.Add().Text(NHibernateStrings.Example10d1).Action("UsingProjections", "NHibernate");
                                mii.Add().Text(NHibernateStrings.Example10d2).Action("UsingProjectionsNHibernate", "NHibernate");
                            });
                            mi.Add().Text("#11: Boolean substitute").Items(mii =>
                            {
                                mii.Add().Text(NHibernateStrings.Example11d1).Action("BooleanSubstitute", "NHibernate");
                                mii.Add().Text(NHibernateStrings.Example11d2).Action("BooleanSubstituteNHibernate", "NHibernate");
                            });
                            mi.Add().Text("#12: Value resolvers").Items(mii =>
                            {
                                mii.Add().Text(NHibernateStrings.Example12d1).Action("ValueResolver", "NHibernate");
                                mii.Add().Text(NHibernateStrings.Example12d2).Action("ValueResolverNHibernate", "NHibernate");
                            });
                            mi.Add().Text("#13: ORM Integration").Items(mii =>
                            {
                                mii.Add().Text(NHibernateStrings.Example13d1).Action("ORMIntegration", "NHibernate");
                                mii.Add().Text(NHibernateStrings.Example13d2).Action("ORMIntegrationNHibernate", "NHibernate");
                            });
                            mi.Add().Text("#14: Filtering on nullable values").Items(mii =>
                            {
                                mii.Add().Text(NHibernateStrings.Example14d1).Action("FilteringNullableValues", "NHibernate");
                                mii.Add().Text(NHibernateStrings.Example14d2).Action("FilteringNullableValuesNHibernate", "NHibernate");
                                mii.Add().Text(NHibernateStrings.Example14d3).Action("FilteringWithNullAliases", "NHibernate");
                                mii.Add().Text(NHibernateStrings.Example14d4).Action("FilteringWithNullAliasesNHibernate", "NHibernate");
                                mii.Add().Text(NHibernateStrings.Example14d5).Action("FilteringWithNullSubstitutes", "NHibernate");
                                mii.Add().Text(NHibernateStrings.Example14d6).Action("FilteringWithNullSubstitutesNHibernate", "NHibernate");
                            });
                            mi.Add().Text("#15: Case insensitive search").Items(mii =>
                            {
                                mii.Add().Text(NHibernateStrings.Example15d1).Action("CaseInsensitiveSearch", "NHibernate");
                                mii.Add().Text(NHibernateStrings.Example15d2).Action("QueryOverCaseInsensitiveSearch", "NHibernate");
                            });
                        });
                        menu.Add().Text("EntityFramework").Action("Index", "EntityFramework").Items(mi =>
                        {
                            mi.Add().Text(EntityFrameworkStrings.Example1).Action("CustomAjaxBinding", "EntityFramework");
                            mi.Add().Text(EntityFrameworkStrings.Example2).Action("CustomServerBinding", "EntityFramework");
                            mi.Add().Text(EntityFrameworkStrings.Example3).Action("TwoQueriesToCountAndList", "EntityFramework");
                            mi.Add().Text(EntityFrameworkStrings.Example4).Action("MappingTechniques", "EntityFramework");
                            mi.Add().Text(EntityFrameworkStrings.Example5).Action("AggregatesServerSide", "EntityFramework");
                            mi.Add().Text(EntityFrameworkStrings.Example6).Action("AggregatesClientSide", "EntityFramework");
                            mi.Add().Text(EntityFrameworkStrings.Example7).Action("DirectUsageOfTEntity", "EntityFramework");
                            mi.Add().Text("#08: Custom aggregates").Items(mii =>
                            {
                                mii.Add().Text(EntityFrameworkStrings.Example8d1).Action("CustomAggregatesFunctionsClientSide", "EntityFramework");
                                mii.Add().Text(EntityFrameworkStrings.Example8d2).Action("CustomAggregatesFunctionsInlineClientSide", "EntityFramework");
                                mii.Add().Text(EntityFrameworkStrings.Example8d3).Action("CustomAggregatesFunctionsIgnoreGroupAggregatesClientSide", "EntityFramework");
                                mii.Add().Text(EntityFrameworkStrings.Example8d4).Action("CustomAggregatesFunctionsInlineDirectUsageOfTEntityClientSide", "EntityFramework");
                            });
                            mi.Add().Text(EntityFrameworkStrings.Example9).Action("UsingProjections", "EntityFramework");
                            mi.Add().Text(EntityFrameworkStrings.Example10).Action("BooleanSubstitute", "EntityFramework");
                            mi.Add().Text(EntityFrameworkStrings.Example11).Action("ValueResolver", "EntityFramework");
                            mi.Add().Text("#12: Filtering nullable values").Items(mii =>
                            {
                                mii.Add().Text(EntityFrameworkStrings.Example12d1).Action("FilteringNullableValues", "EntityFramework");
                                mii.Add().Text(EntityFrameworkStrings.Example12d2).Action("FilteringWithNullAliases", "EntityFramework");
                                mii.Add().Text(EntityFrameworkStrings.Example12d3).Action("FilteringWithNullSubstitutes", "EntityFramework");
                            });
                            mi.Add().Text(EntityFrameworkStrings.Example13).Action("CaseInsensitiveSearch", "EntityFramework");
                        });
                        menu.Add().Text("Nuget").Items(mi =>
                        {
                            mi.Add().Text("Nuget (Core)").Url("http://nuget.org/packages/TelerikMvcGridCustomBindingHelper");
                            mi.Add().Text("Nuget (NHibernate)").Url("http://nuget.org/packages/TelerikMvcGridCustomBindingHelper.NHibernate");
                        });
                        menu.Add().Text("Repository").Url("http://tgh.codeplex.com");
                        menu.Add().Text("Documentation").Url("http://tgh.codeplex.com/documentation");
                        menu.Add().Text("Discussions").Url("http://tgh.codeplex.com/discussions");
                        menu.Add().Text("Source Code").Url("http://tgh.codeplex.com/SourceControl/list/changesets");
                    }))
        </header>
        <section id="main">
            @RenderBody()
        </section>
        <footer>
        </footer>
    </div>
    @(Html.Telerik().ScriptRegistrar().jQuery(true).DefaultGroup(group =>
    group.Combined(false).Compress(false)))

    @RenderSection("customScripts", false)

</body>
</html>
